package cn.mw.cmdb.timeplan.service;

import cn.mw.cmdb.timeplan.entity.MwTimePlan;
import cn.mw.cmdb.timeplan.entity.MwTimePlanRelationModuleDto;
import cn.mw.cmdb.timeplan.param.MwTimePlanParam;
import cn.mw.components.mongodb.entity.SearchParam;

import java.util.List;

public interface MwTimePlanService {
    MwTimePlanParam save(MwTimePlanParam param) throws Exception;

    MwTimePlanParam select(MwTimePlanParam param);

    List<MwTimePlanParam> list(SearchParam param) throws Exception;

    void delete(MwTimePlanParam timePlanParam) throws Exception;

    /**
     * 获取时间计划的详情信息
     * @return
     */
    List<MwTimePlanRelationModuleDto> getTimePlanDetailInfo(MwTimePlanParam timePlanParam) throws Exception;

    List<MwTimePlan> selectListByIds(MwTimePlanParam timePlanParam);
}
